package com.wtwd.wtwddevice.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.wtwd.device.model.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author mjy
 * @since 2024-05-21
 */
@ApiModel(value="Frequency对象", description="")
public class Frequency extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "设置设备频率表主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "设备主键id")
    private Long deviceId;

    @ApiModelProperty(value = "1.心率")
    private Integer type;

    @ApiModelProperty(value = "频率值")
    private Integer value;

    @ApiModelProperty(value = "0.下发成功  1 下发中")
    private Integer state;

    @ApiModelProperty(value = "下发指令序列号")
    private String number;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Long getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(Long deviceId) {
        this.deviceId = deviceId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getValue() {
        return value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    @Override
    public String toString() {
        return "Frequency{" +
        "id=" + id +
        ", deviceId=" + deviceId +
        ", type=" + type +
        ", value=" + value +
        ", state=" + state +
        ", number=" + number +
        "}";
    }
}
